import * as publics from './action-type';

let routerName = {
    router: '',
    topnav: {

    }
}


const proRoute = (state = routerName, action = {}) => {

    switch (action.type) {
        case publics.ROUTERSTORE:
            return {...state, ...action};
        case publics.TOPNAV:
            return {...state, ...action};
        default:
            return state;
    }
}

export default proRoute